package phoenics.manpads.common.mybatis.page;

import java.util.ArrayList;

/**
 * 承接数据库返回结果
 *
 * @author Phoenics Chow
 * on 2018年12月11日
 */
public class PageList<T> extends ArrayList<T> {
    private static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(PageList.class);
    private int offset=0;
    private int total=0;
    private int limit=0;
    public PageList(int total,int offset,int limit){
        this.offset=offset;
        this.limit=limit;
        this.total=total;
    }

    public int getOffset() {
        return offset;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }


    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }
}
